package com.example.demo.design.demo02_strategy;

/**
 * Created by 蔡超 on 2018/10/1.
 */
public class CashRebate extends CashStrategy {

    private static final Double RATE = 0.8;

    @Override
    public double cashMethod(double money) {
        return money * RATE;
    }
}
